﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NCT.Framework;

namespace VISS.Web.Frontend.Modules.User
{
    public partial class ComingSoonPage : System.Web.UI.Page
    {
        public int IDStyle { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            UserContext userContext = LoginFactory.GetCurrentUser();
            if (userContext != null)
                Response.Redirect("/profile?u=" + userContext.UserKey);

            IDStyle = 1;
            //string style = Request.QueryString["style"];
            //if (style == null || style == "")
            //{
            //    IDStyle = NumberUtils.GetRandomNum(0, 2) % 2;
            //    Response.Redirect("/?cs=" + NumberUtils.GetRandomNum(0, 2).ToString());
            //}
            //else
            //    IDStyle = ConvertUtils.ToInt(style) % 2;


            // SEO
            IHeadSeo seo = this.Master as IHeadSeo;
            seo.Title = StringResources.SEO.TitleDefault;
            seo.Description = StringResources.SEO.DescriptionDefault;
            seo.Keywords = StringResources.SEO.KeywordsDefault;
        }
    }
}
